package com.zizo.autohome.emotion.bean;

public class Topic {
	private String tag1;
	private String tag2;
	private String tag3;
	private String tag4;
	private String topic0;
	private String topic1;
	private String topic2;
	private String topic3;
	private String topic4;
	private float score;
	private float emotion;
	private String adv;

	public float getEmotion() {
		return emotion;
	}

	public void setEmotion(float emotion) {
		this.emotion = emotion;
	}

	public String getAdv() {
		return adv;
	}

	public void setAdv(String adv) {
		this.adv = adv;
	}

	public String[] getTopicList() {
		String[] topics = new String[5];
		topics[0] = topic0;
		topics[1] = topic1;
		topics[2] = topic2;
		topics[3] = topic3;
		topics[4] = topic4;
		return topics;
	}

	public String[] getTagList() {
		String[] tags = new String[5];
		tags[0] = tag1;
		tags[1] = tag2;
		tags[2] = tag3;
		tags[3] = tag4;
		return tags;
	}

	public Topic(String tag1, String tag2, String tag3, String tag4, String topic0, String topic1, String topic2,
			String topic3, String topic4, float score, int size) {
		super();
		int i = 1;
		this.tag1 = size >= i ? tag1 : "";
		i++;
		this.tag2 = size >= i ? tag2 : "";
		i++;
		this.tag3 = size >= i ? tag3 : "";
		i++;
		this.tag4 = size >= i ? tag4 : "";
		i++;
		this.topic0 = size >= i ? topic0 : "";
		i++;
		this.topic1 = size >= i ? topic1 : "";
		i++;
		this.topic2 = size >= i ? topic2 : "";
		i++;
		this.topic3 = size >= i ? topic3 : "";
		i++;
		this.topic4 = size >= i ? topic4 : "";
		i++;
		this.score = size >= i ? score : 101;
	}

	public Topic(String tag1, String tag2, String tag3, String tag4, String topic0, String topic1, String topic2,
			String topic3, String topic4, float score) {
		super();
		this.tag1 = tag1;
		this.tag2 = tag2;
		this.tag3 = tag3;
		this.tag4 = tag4;
		this.topic0 = topic0;
		this.topic1 = topic1;
		this.topic2 = topic2;
		this.topic3 = topic3;
		this.topic4 = topic4;
		this.score = score;
	}

	public Topic() {
		super();
	}

	public String getTag1() {
		return tag1;
	}

	public void setTag1(String tag1) {
		this.tag1 = tag1;
	}

	public String getTag2() {
		return tag2;
	}

	public void setTag2(String tag2) {
		this.tag2 = tag2;
	}

	public String getTag3() {
		return tag3;
	}

	public void setTag3(String tag3) {
		this.tag3 = tag3;
	}

	public String getTag4() {
		return tag4;
	}

	public void setTag4(String tag4) {
		this.tag4 = tag4;
	}

	public String getTopic0() {
		return topic0;
	}

	public void setTopic0(String topic0) {
		this.topic0 = topic0;
	}

	public String getTopic1() {
		return topic1;
	}

	public void setTopic1(String topic1) {
		this.topic1 = topic1;
	}

	public String getTopic2() {
		return topic2;
	}

	public void setTopic2(String topic2) {
		this.topic2 = topic2;
	}

	public String getTopic3() {
		return topic3;
	}

	public void setTopic3(String topic3) {
		this.topic3 = topic3;
	}

	public String getTopic4() {
		return topic4;
	}

	public void setTopic4(String topic4) {
		this.topic4 = topic4;
	}

	public float getScore() {
		return score;
	}

	public void setScore(float score) {
		this.score = score;
	}

	public String toString() {
		return "[" + this.tag1 + "],[" + this.tag2 + "],[" + this.tag3 + "],[" + this.tag4 + "]~~~[" + this.topic0
				+ "],[" + this.topic1 + "],[" + this.topic2 + "],[" + this.topic3 + "],[" + this.topic4 + "]~~~["
				+ this.score + "]~~~[" + this.emotion + "]~~~" + adv + "";
	}
}
